
<%-------------------------------------------------------------------
 * 页面名称：left.jsp
 * 功能描述：我的左侧功能菜单
 * Action  : 
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ page import="cn.agiledata.bank.common.util.Constant"%>
<%@ page import="cn.agiledata.bank.account.service.IAccountConst"%>
<%@ page import="cn.agiledata.bank.account.service.AccountSummary"%>
<script type="text/javascript">
function numberFocus() {
		var mobileNum = document.getElementById("idNumber");
		if(isNaN(mobileNum.value) == true) {
			mobileNum.value="";
		}
	}

	// 手机号码失去焦点事件
	function numberBlur() {
		var mobileNum = document.getElementById("idNumber");
		if(isNaN(mobileNum.value) == true || mobileNum.value == "") {
			mobileNum.value="请输入要充值的手机号码";
		}
	}

	function validate() {
		var objFrm = document.frmCharge;
		// 手机号码检查
		var strMobileNum = objFrm.mobileNum.value;
		if(isNaN(strMobileNum) == true
			||strMobileNum.value == "") {
			alert('请输入要充值的手机号码');
			objFrm.mobileNum.focus();
			return false;
		}

		if(!checkCmMobile(strMobileNum)) {
			alert('手机号码输入错误，请输入中国移动手机号码');
			objFrm.mobileNum.focus();
			return false;
		}

		// 检查充值类型选择
		var bolSelect = false;
		var objType = document.getElementsByName("chargeType");
		for(i=0;i<objType.length;i++) {
			if(objType[i].checked) {
				bolSelect = true;
			}
		}

		if(!bolSelect) {
			alert('请选择充值金额');
			return false;
		}

		objFrm.buttonNext.disabled = true;

		return true;
	}
</script>
<%
	String path = request.getContextPath();
	AccountSummary user = (AccountSummary) session
			.getAttribute(Constant.SESSION_ACCOUNT_SUMMARY);
	String status = request.getParameter("current");
	if (status == null)
		status = "";
%>
<!-- 页面左边部分公共页面开始 -->
<!-- 个人用户菜单 -->
<%
if (IAccountConst.USERTYPE_PERSONAL.equals(user.getUserType())) {
%>
<div class="content_left">
	<ul class="gongneng">
		<li class="left_1"></li>
		<logic:equal name="modual" value="pay">
			<li class="left_2">
				<a href="<%=path%>/route.do?modual=pay$innerPay">网上付款</a>
			</li>
			<li class="left_3">
				<a href="<%=path%>/route.do?modual=pay$innerCollect">网上收款</a>
			</li>
		</logic:equal>
		<logic:equal name="modual" value="inpour_draw">
			<li class="left_4">
				<a href="<%=path%>/route.do?modual=inpour_draw$netBank">网上充值</a>
			</li>
		</logic:equal>
		<logic:equal name="modual" value="inpour_draw">
			<li class="left_6">
				<a href="<%=path%>/route.do?modual=inpour_draw$toSelf">账户提现</a>
			</li>
		</logic:equal>


		<li class="left_9"
			style="color:#656565;line-height:35px; text-align:left;">
			&nbsp;&nbsp;&nbsp;常见问题
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="#" class="more">更多>></a>
		</li>
		<li class="left_10">
			<ul>
				<li>
					<a href="#">如何申请认证？</a>
				</li>
				<li>
					<a href="#">账户中又不可用余额则们回事？</a>
				</li>
				<li>
					<a href="#">支付密码忘记，如何找回?支付密码忘记，如何</a>
				</li>
			</ul>

		</li>
	</ul>
</div>
<%
} else {
%>
<!-- 普通企业 -->
<%
		if (IAccountConst.COMPANY_TYPE_SIMPLE.equals(user
		.getCompanyType())) {
%>
<div class="content_left">
	<ul class="gongneng">
	<li class="left_1"></li>
		<%
					if (IAccountConst.USERTYPE_CORP_OPERATOR.equals(user
					.getUserType())) {
		%>
		
		<logic:equal name="modual" value="pay">
			<li class="left_2">
				<a href="<%=path%>/route.do?modual=pay$innerPay">网上付款</a>
			</li>
			<li class="left_3">
				<a href="<%=path%>/route.do?modual=pay$innerCollect">网上收款</a>
			</li>
		</logic:equal>
		<logic:equal name="modual" value="inpour_draw">
			<li class="left_4">
				<a href="<%=path%>/route.do?modual=inpour_draw$netBank">网上充值</a>
			</li>
		</logic:equal>
		<logic:equal name="modual" value="inpour_draw">
			<li class="left_6">
				<a href="<%=path%>/route.do?modual=inpour_draw$toSelf">账户提现</a>
			</li>
		</logic:equal>
		<%
		}
		%>
		<%
					if (IAccountConst.USERTYPE_CORP_ADMIN.equals(user
					.getUserType())) {
		%>
		<li class="left_11">
			<a href="#"
				onclick="loading('<%=path%>/page/myspace/toModifyPassword.do?modifyType=<%=IAccountConst.MODIFY_TYPE_LOGIN%>');">修改登录密码</a>
		</li>
		<li class="left_11">
			<a href="#"
				onclick="loading('<%=path%>/page/myspace/modifyCorpAccountUserInfo.do');">修改企业信息</a>
		</li>
		<li class="left_11">
			<a href="#"
				onclick="loading('<%=path%>/page/myspace/accountList.do?modifyType=mySpace');">添加银行账户</a>
		</li>
		<li class="left_11">
			<a href="#"
				onclick="loading('<%=path%>/page/myspace/getPeerInnerAccountList.do');">设置联系人&nbsp;&nbsp;&nbsp;&nbsp;</a>
		</li>

		<!-- 管理员相关权限 -->
		<li class="left_11">
			<a href="#"
				onclick="loading('<%=path%>/page/myspace/toInitAudit2.do');">设置多级审核</a>
		</li>
		<li class="left_11">
			<a href="#"
				onclick="loading('<%=path%>/page/myspace/toInitAudit.do');">设置操作员&nbsp;&nbsp;&nbsp;&nbsp;</a>
		</li>
		<li class="left_11">
			<a href="#"
				onclick="loading('<%=path%>/page/myspace/preModifyCryptoKey.do');">设置密钥&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>

		</li>
		<%
		}
		%>

		<li class="left_9"
			style="color:#656565;line-height:35px; text-align:left;">
			&nbsp;&nbsp;&nbsp;常见问题
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="#" class="more">更多>></a>
		</li>
		<li class="left_10">
			<ul>
				<li>
					<a href="#">如何申请认证？</a>
				</li>
				<li>
					<a href="#">账户中又不可用余额则们回事？</a>
				</li>
				<li>
					<a href="#">支付密码忘记，如何找回?支付密码忘记，如何</a>
				</li>
			</ul>
		</li>
		<li></li>
		<li></li>
		<li></li>
	</ul>
</div>
<%
}
%>
<!-- 网关企业 -->
<%
		if (IAccountConst.COMPANY_TYPE_GATEWAY.equals(user
		.getCompanyType())) {
%>
<div class="content_left">
	<ul class="gongneng">
		<li class="left_1"></li>
		<li class="left_11">
			<a href="#"
				onclick="loading('<%=path%>/page/myspace/toModifyPassword.do?modifyType=<%=IAccountConst.MODIFY_TYPE_LOGIN%>');">修改登录密码</a>
		</li>
		<%
					if (IAccountConst.USERTYPE_CORP_OPERATOR.equals(user
					.getUserType())) {
		%>
		<!-- 普通操作员有修改支付密码功能 -->
		<li class="left_11">
			<a href="#"
				onclick="loading('<%=path%>/page/myspace/toModifyPassword.do?modifyType=<%=IAccountConst.MODIFY_TYPE_PAY%>');">修改支付密码</a>
		</li>
		<%
		}
		%>
		<li class="left_11">
			<a href="#"
				onclick="loading('<%=path%>/page/myspace/modifyCorpAccountUserInfo.do');">修改企业信息</a>
		</li>
		<%
					if (IAccountConst.USERTYPE_CORP_ADMIN.equals(user
					.getUserType())) {
		%>
		<!-- 管理员相关权限 -->
		<li class="left_11">
			<a href="#"
				onclick="loading('<%=path%>/page/myspace/toInitAudit.do');">设置操作员&nbsp;&nbsp;&nbsp;&nbsp;</a>
		</li>
		<li class="left_11">
			<a href="#"
				onclick="loading('<%=path%>/page/myspace/preModifyCryptoKey.do');">设置密钥&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>

		</li>
		<%
		}
		%>
		<li class="left_8">
			<img src="<%=path%>/images/left_8h.jpg" />
		</li>

		<li class="left_9"
			style="color:#656565;line-height:35px; text-align:left;">
			&nbsp;&nbsp;&nbsp;常见问题
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="#" class="more">更多>></a>
		</li>
		<li class="left_10">
			<ul>
				<li>
					<a href="#">如何申请认证？</a>
				</li>
				<li>
					<a href="#">账户中又不可用余额则们回事？</a>
				</li>
				<li>
					<a href="#">支付密码忘记，如何找回?支付密码忘记，如何</a>
				</li>
			</ul>
		</li>
	</ul>
</div>
<%
}
%>
<%
}
%>
<!-- 页面左边部分公共页面结束 -->
